package org.jeecg.modules.basic.material.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 物料入库表
 * @Author: jeecg-boot
 * @Date:   2021-03-30
 * @Version: V1.0
 */
@Data
@TableName("lwgy_in_stock")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="lwgy_in_stock对象", description="物料入库表")
public class LwgyInStock implements Serializable {
    private static final long serialVersionUID = 1L;

	/**编号*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private java.lang.String id;
    @Excel(name = "编号", width = 15)
    @ApiModelProperty(value = "编号")
    private java.lang.String stockNo;
    @ApiModelProperty(value = "状态")
    private java.lang.String state;
    @ApiModelProperty(value = "是否打印")
    private java.lang.String isPrint;
    @Excel(name = "申请人", width = 15)
    @ApiModelProperty(value = "申请人")
    private java.lang.String writer;
	/**校区*/
    @Excel(name = "校区", width = 15,dictTable = "lwgy_base_school",dicCode = "id",dicText = "name")
    @Dict(dictTable = "lwgy_base_school",dicCode = "id",dicText = "name")
    @ApiModelProperty(value = "校区")
    private String studentCampus;
	/**供应商*/
	@Excel(name = "供应商", width = 15,dicText = "supplier_name",dictTable = "lwgy_material_supplier",dicCode = "id")
    @Dict(dicCode = "id",dicText = "supplier_name",dictTable = "lwgy_material_supplier")
    @ApiModelProperty(value = "供应商")
    private java.lang.String providerName;
	/**价格*/
	@Excel(name = "价格", width = 15)
    @ApiModelProperty(value = "价格")
    private java.math.BigDecimal price;
    /**入库数量*/
    @Excel(name = "入库数量", width = 15)
    @ApiModelProperty(value = "入库数量")
    private BigDecimal inStockCounts;
	/**总额*/
	@Excel(name = "总额", width = 15)
    @ApiModelProperty(value = "总额")
    private java.math.BigDecimal amount;
	/**购买人*/
	@Excel(name = "入库人", width = 15)
    @Dict(dicCode = "id",dicText = "realname",dictTable = "sys_user")
    @ApiModelProperty(value = "入库人")
    private java.lang.String buyer;
	/**状态：0：未审核；1：审核通过；2：审核未通过*/
    @ApiModelProperty(value = "状态：0：未审核；1：审核通过；2：审核未通过")
    private java.lang.String inStockState;
	/**审核备注*/
    @ApiModelProperty(value = "审核备注")
    private java.lang.String remark;
	/**审核人*/
    @ApiModelProperty(value = "审核人")
    private java.lang.String checkUser;
	/**审核时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "审核时间")
    private java.util.Date checkDatetime;

	/**入库时间*/
	@Excel(name = "入库时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "入库时间")
    private java.util.Date inStockTime;
	/**入库仓库*/
	@Excel(name = "入库仓库", width = 15,dicCode = "id",dicText = "inventory_name",dictTable = "lwgy_material_inventory")
    @Dict(dicCode = "id",dicText = "inventory_name",dictTable = "lwgy_material_inventory")
    @ApiModelProperty(value = "入库仓库")
    private java.lang.String inStockName;
	/**入库方式*/
	@Excel(name = "入库方式", width = 15,dicCode = "id",dicText = "in_stock_name",dictTable = "lwgy_in_stocktype")
    @ApiModelProperty(value = "入库方式")
    @Dict(dicCode = "id",dicText = "in_stock_name",dictTable = "lwgy_in_stocktype")
    private java.lang.String inStockMethod;
	/**入库单号*/
    @ApiModelProperty(value = "入库单号")
    private java.lang.String inStockNumber;
	/**物品名称*/
	@Excel(name = "物品名称", width = 15)
    @ApiModelProperty(value = "物品名称")
    private java.lang.String itemName;
	/**备注说明*/
	@Excel(name = "备注说明", width = 15)
    @ApiModelProperty(value = "备注说明")
    private java.lang.String note;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date writerTime;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**修改日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "修改日期")
    private java.util.Date updateTime;
	/**修改人*/
    @ApiModelProperty(value = "修改人")
    private java.lang.String updateBy;
    /**物品id*/
    private String goodsId;


}
